package parts5.lesson72;

import java.io.File;

public class Demo {
    public static void main(String[] args) {
        String str="D:"+ File.separator;
        File file=new File(str);
        if(file.exists()&&file.isDirectory()){
            File res[]=file.listFiles();
            for (int x=0;x<res.length;x++){
                System.out.println(res[x]);
            }
        }
    }
}
